package com.dao;

import java.sql.SQLException;
import java.util.List;

import com.user.Category;

public interface ICategroryDao {

	//获取所有的种类
		List<Category> getAll()throws SQLException;
		//新增一个种类
		boolean insert(Category category)throws SQLException;
		//删除一个种类
		int delete(int id,int parentid)throws SQLException;
		//更新一个种类
		//boolean updata(Category category)throws SQLException;
}
